home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 78 / CD Actual 78 Mayo 2003.iso / Linux / LinuxGazette / lg / issue89 / misc / danguer / variables.xsl < prev   
Encoding:
Extensible Markup Language  |  2003-02-17  |  517 b   |  23 lines

  1. <!-- variables.xsl -->
  2.  
  3. <xsl:stylesheet version="1.0"
  4.                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5.  
  6.  
  7. <xsl:template match="/"> 
  8. <!--  definition of the variable  -->
  9. <xsl:variable name="path">http://somedomain/tmp/xslt</xsl:variable>   
  10.     <html>
  11.        <head>
  12.          <title>Examples of Variables</title>
  13.         </head>
  14.        <body>
  15.          <p>
  16.            <a href="{$path}/photo.jpg">Photo of my latest travel</a>
  17.         </p>
  18.        </body>
  19.     </html>
  20. </xsl:template>
  21.  
  22. </xsl:stylesheet>
  23.